package com.yn.pet.bus.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备SIM卡绑定表(DeviceSim)表实体类
 *
 * @author makejava
 * @since 2025-07-09 12:00:46
 */
@Data
@TableName("t_device_sim")
@EqualsAndHashCode(callSuper = true)
public class DeviceSim extends Model<DeviceSim> {
    //SIM卡ID
    @TableId
    private Long simId;
    //设备ID
    private Long deviceId;
    //SIM卡ICCID
    private String iccid;
    //手机号码
    private String phoneNumber;
    //运营商
    private String carrier;
    //流量套餐
    private String dataPlan;
    //激活日期
    private Date activateTime;
    //到期日期
    private Date expireTime;
    //数据状态1有效0无效
    private Integer dataStatus;
    //创建时间
    private Date createTime;
    //创建人
    private String createBy;
    //更新时间
    private Date updateTime;
    //更新人
    private String updateBy;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.simId;
    }
}

